bitkeeper revision 1.1389.7.3 (42792bb0bqVz6IEYKWbCD7d63K-6ew)
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Wed, 4 May 2005 20:08:16 +0000 (20:08 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Wed, 4 May 2005 20:08:16 +0000 (20:08 +0000)
fixmap.h, boot.c, tables.c, io_apic.h:
  Cleanup whitespace.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
linux-2.6.11-xen-sparse/arch/xen/i386/kernel/acpi/boot.c
linux-2.6.11-xen-sparse/drivers/acpi/tables.c
linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/fixmap.h
linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/io_apic.h

index 46e8585c40c5e88d943d0f53546860ddbb583dbf..4ba5437fc970908307f159c04878720d732f86b8 100644 (file)
@@ -109,17 +109,18 @@ enum acpi_irq_model_id            acpi_irq_model = ACPI_IRQ_MODEL_PIC;
 
 char *__acpi_map_table(unsigned long phys_addr, unsigned long size)
 {
-        unsigned int i,j;
+       unsigned int i,j;
 
-        j = PAGE_ALIGN(size) >> PAGE_SHIFT;
-        for (i = 0; (i < FIX_ACPI_PAGES) && j ; i++, j--) {
-                __set_fixmap_ma(FIX_ACPI_END - i,
-                                (phys_addr & PAGE_MASK) + (i << PAGE_SHIFT),
-                                PAGE_KERNEL);
-        }
+       j = PAGE_ALIGN(size) >> PAGE_SHIFT;
+       for (i = 0; (i < FIX_ACPI_PAGES) && j ; i++, j--) {
+               __set_fixmap_ma(FIX_ACPI_END - i,
+                               (phys_addr & PAGE_MASK) + (i << PAGE_SHIFT),
+                               PAGE_KERNEL);
+       }
 
-        return (char *) __fix_to_virt(FIX_ACPI_END) + (phys_addr & ~PAGE_MASK);
+       return (char *) __fix_to_virt(FIX_ACPI_END) + (phys_addr & ~PAGE_MASK);
 }
+
 #else
 #ifdef CONFIG_X86_64
 
@@ -523,7 +524,7 @@ acpi_scan_rsdp (
 {
        unsigned long           offset = 0;
        unsigned long           sig_len = sizeof("RSD PTR ") - 1;
-        unsigned long           vstart = isa_bus_to_virt(start);
+       unsigned long           vstart = isa_bus_to_virt(start);
 
        /*
         * Scan all 16-byte boundaries of the physical memory region for the
@@ -649,7 +650,6 @@ acpi_find_rsdp (void)
                else if (efi.acpi)
                        return __pa(efi.acpi);
        }
-
        /*
         * Scan memory looking for the RSDP signature. First search EBDA (low
         * memory) paragraphs and then search upper memory (E0000-FFFFF).
@@ -658,7 +658,7 @@ acpi_find_rsdp (void)
        if (!rsdp_phys)
                rsdp_phys = acpi_scan_rsdp (0xE0000, 0x20000);
 
-        __set_fixmap_ma(FIX_ACPI_RSDP_PAGE, rsdp_phys, PAGE_KERNEL);
+       __set_fixmap_ma(FIX_ACPI_RSDP_PAGE, rsdp_phys, PAGE_KERNEL);
 
        return rsdp_phys;
 }
@@ -674,7 +674,7 @@ acpi_parse_madt_lapic_entries(void)
        int count;
 
 #ifdef CONFIG_XEN
-        return 0;
+       return 0;
 #endif
 
        /* 
@@ -872,7 +872,9 @@ acpi_boot_table_init(void)
        }
 
 #ifdef __i386__
-       //check_acpi_pci();
+#ifndef CONFIG_XEN
+       check_acpi_pci();
+#endif
 #endif
 
        acpi_table_parse(ACPI_BOOT, acpi_parse_sbf);
index 41ac92deac4a0e3b2194818cdeeca5a5c074d0b8..79e956b832bcdf5787ec1d995863a10ad891b94a 100644 (file)
@@ -581,8 +581,8 @@ acpi_table_init (void)
                return -ENODEV;
        }
 
-        rsdp = (struct acpi_table_rsdp *) (__fix_to_virt(FIX_ACPI_RSDP_PAGE)
-                                           + (rsdp_phys & ~PAGE_MASK));
+       rsdp = (struct acpi_table_rsdp *) (__fix_to_virt(FIX_ACPI_RSDP_PAGE) +
+                                          (rsdp_phys & ~PAGE_MASK));
        if (!rsdp) {
                printk(KERN_WARNING PREFIX "Unable to map RSDP\n");
                return -ENODEV;
index a663bb8d1dc06b4c0118820f15a1acdc83a4df84..cce81a570c35d312dceade494419f323ac2be715 100644 (file)
@@ -80,7 +80,7 @@ enum fixed_addresses {
 #ifdef CONFIG_ACPI_BOOT
        FIX_ACPI_BEGIN,
        FIX_ACPI_END = FIX_ACPI_BEGIN + FIX_ACPI_PAGES - 1,
-        FIX_ACPI_RSDP_PAGE,
+       FIX_ACPI_RSDP_PAGE,
 #endif
 #ifdef CONFIG_PCI_MMCONFIG
        FIX_PCIE_MCFG,
index 6f316c6a51353903d35cec13cc83463e49406b3b..bc10fff7dee2040400af2b784f7d6284bd4b13ab 100644 (file)
@@ -165,28 +165,27 @@ extern int mpc_default_type;
 
 static inline unsigned int io_apic_read(unsigned int apic, unsigned int reg)
 {
-        physdev_op_t op;
-        int ret;
-
-        op.cmd = PHYSDEVOP_APIC_READ;
-        op.u.apic_op.apic = apic;
-        op.u.apic_op.offset = reg;
-        ret = HYPERVISOR_physdev_op(&op);
-        if (ret)
-                return ret;
-        return op.u.apic_op.value;
+       physdev_op_t op;
+       int ret;
+
+       op.cmd = PHYSDEVOP_APIC_READ;
+       op.u.apic_op.apic = apic;
+       op.u.apic_op.offset = reg;
+       ret = HYPERVISOR_physdev_op(&op);
+       if (ret)
+               return ret;
+       return op.u.apic_op.value;
 }
 
 static inline void io_apic_write(unsigned int apic, unsigned int reg, unsigned int value)
 {
-        physdev_op_t op;
-        int ret;
-
-        op.cmd = PHYSDEVOP_APIC_WRITE;
-        op.u.apic_op.apic = apic;
-        op.u.apic_op.offset = reg;
-        op.u.apic_op.value = value;
-        ret = HYPERVISOR_physdev_op(&op);
+       physdev_op_t op;
+
+       op.cmd = PHYSDEVOP_APIC_WRITE;
+       op.u.apic_op.apic = apic;
+       op.u.apic_op.offset = reg;
+       op.u.apic_op.value = value;
+       HYPERVISOR_physdev_op(&op);
 }
 
 /*